package com.junzhiit.nengji.cms.web.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class ViewObjectUtil {
	
	protected static Log logger = LogFactory.getLog(RequestUtil.class);
	
	public static <T> Map<String, Object> dataTables(List<T> list,int draw,int totalCount){
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("draw", draw);
		result.put("recordsFiltered", totalCount);
		result.put("totalCount", totalCount);
		result.put("list", list);
		return result;
	}
	
}
